﻿using StarPizza.Model.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StarPizza.ViewModel.ManagerSystem
{
    class ManagerSystemVM : SubsystemVM
    { 
        public ManagerSystemVM(UserSpace userSpace,
            ToppingAdministrator toppingAdministrator,
            DoughAdministrator doughAdministrator,
            ClientAdministrator clientAdministrator,
            PizzaAdministrator pizzaAdministrator,
            CashAdministrator cashAdministrator,
            ReportCreator reportCreator)
            : base(userSpace)
        {
            this.toppingAdministrator = toppingAdministrator;
            this.doughAdministrator = doughAdministrator;
            this.clientAdministrator = clientAdministrator;
            this.pizzaAdministrator = pizzaAdministrator;
            this.cashAdministrator = cashAdministrator;
            this.reportCreator = reportCreator;
        }
        protected override bool ShouldBeVisible(UserMode userMode)
        {
            return userMode == UserMode.Manager;
        }
        private ToppingAdministrator toppingAdministrator;
        public ToppingAdministrator ToppingAdministrator { get { return toppingAdministrator; } }
        
        private DoughAdministrator doughAdministrator;
        public DoughAdministrator DoughAdministrator { get { return doughAdministrator; } }

        private ClientAdministrator clientAdministrator;
        public ClientAdministrator ClientAdministrator { get { return clientAdministrator; } }

        private PizzaAdministrator pizzaAdministrator;
        public PizzaAdministrator PizzaAdministrator { get { return pizzaAdministrator; } }

        private CashAdministrator cashAdministrator;
        public CashAdministrator CashAdministrator { get { return cashAdministrator; } }

        private ReportCreator reportCreator;
        public ReportCreator ReportCreator { get { return reportCreator; } }
    }
}
